home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / CIncludes / AEPackObject.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  2.1 KB  |  101 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        AEPackObject.h
  3.  
  4.      Contains:    AppleEvents object packing Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1991-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18. #ifndef __AEPACKOBJECT__
  19. #define __AEPACKOBJECT__
  20.  
  21. #ifndef __APPLEEVENTS__
  22. #include <AppleEvents.h>
  23. #endif
  24.  
  25.  
  26.  
  27. #if PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30.  
  31. #ifdef __cplusplus
  32. extern "C" {
  33. #endif
  34.  
  35. #if PRAGMA_IMPORT
  36. #pragma import on
  37. #endif
  38.  
  39. #if PRAGMA_STRUCT_ALIGN
  40.     #pragma options align=mac68k
  41. #elif PRAGMA_STRUCT_PACKPUSH
  42.     #pragma pack(push, 2)
  43. #elif PRAGMA_STRUCT_PACK
  44.     #pragma pack(2)
  45. #endif
  46.  
  47. /* These are the object packing routines.  */
  48. EXTERN_API( OSErr )
  49. CreateOffsetDescriptor            (long                     theOffset,
  50.                                  AEDesc *                theDescriptor);
  51.  
  52. EXTERN_API( OSErr )
  53. CreateCompDescriptor            (DescType                 comparisonOperator,
  54.                                  AEDesc *                operand1,
  55.                                  AEDesc *                operand2,
  56.                                  Boolean                 disposeInputs,
  57.                                  AEDesc *                theDescriptor);
  58.  
  59. EXTERN_API( OSErr )
  60. CreateLogicalDescriptor            (AEDescList *            theLogicalTerms,
  61.                                  DescType                 theLogicOperator,
  62.                                  Boolean                 disposeInputs,
  63.                                  AEDesc *                theDescriptor);
  64.  
  65.  
  66. EXTERN_API( OSErr )
  67. CreateObjSpecifier                (DescType                 desiredClass,
  68.                                  AEDesc *                theContainer,
  69.                                  DescType                 keyForm,
  70.                                  AEDesc *                keyData,
  71.                                  Boolean                 disposeInputs,
  72.                                  AEDesc *                objSpecifier);
  73.  
  74. EXTERN_API( OSErr )
  75. CreateRangeDescriptor            (AEDesc *                rangeStart,
  76.                                  AEDesc *                rangeStop,
  77.                                  Boolean                 disposeInputs,
  78.                                  AEDesc *                theDescriptor);
  79.  
  80.  
  81. #if PRAGMA_STRUCT_ALIGN
  82.     #pragma options align=reset
  83. #elif PRAGMA_STRUCT_PACKPUSH
  84.     #pragma pack(pop)
  85. #elif PRAGMA_STRUCT_PACK
  86.     #pragma pack()
  87. #endif
  88.  
  89. #ifdef PRAGMA_IMPORT_OFF
  90. #pragma import off
  91. #elif PRAGMA_IMPORT
  92. #pragma import reset
  93. #endif
  94.  
  95. #ifdef __cplusplus
  96. }
  97. #endif
  98.  
  99. #endif /* __AEPACKOBJECT__ */
  100.  
  101.